package com.cfm880.latte;

import android.app.Application;

import com.cfm880.latte.core.app.Latte;
import com.cfm880.latte.core.net.intercepters.DebugInterceptor;
import com.cfm880.latte.ec.FontEcModule;
import com.joanzapata.iconify.fonts.FontAwesomeModule;

/**
 * Created by chengfangming on 2018/1/5.
 */

public class LatteApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Latte.init(this)
                .withIcon(new FontAwesomeModule())
                .withIcon(new FontEcModule())
                .withApiHost("http://www.baidu.com")
                .withInterceptor(new DebugInterceptor("index", R.raw.test))
                .configure();
    }
}
